Previous code was activating the networkAgent and telepathyClient
in the lock-screen, irrespective of the previous mode.
Now it checks if the session mode is locked down, and if so it refuses
to start new components.
https://bugzilla.gnome.org/show_bug.cgi?id=683400
if (component)
return component;
+ if (Main.sessionMode.isLocked)
+ return null;
+
let constructor = this._importComponent(name);
component = new constructor();
this._allComponents[name] = component;
_enableComponent: function(name) {
let component = this._ensureComponent(name);
- component.enable();
+ if (component)
+ component.enable();
},
_disableComponent: function(name) {